<%-- 
    Document   : nuevoMenu
    Created on : 29/01/2010, 07:05:55 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<f:view>
<link href="/general/css/estilosEsymons.css" rel="stylesheet" type="text/css" />
    <link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>

    <h:form>
        <br/>
        <h:panelGrid columns="1" width="100%" styleClass="tablaprincipal">
            <h:outputLabel value="Registrar pagina"/>
        </h:panelGrid>
        <a4j:outputPanel ajaxRendered="true">
            <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                        warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                        warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
        </a4j:outputPanel>

        <h:panelGrid columns="2" styleClass="tablanormal">
            <h:outputLabel value="Tipo Usuario:"/>
            <h:selectOneMenu value="#{MenuWebController.menuWeb.tusCodigo}" onchange="submit();" >
                <f:selectItem itemLabel="--------Seleccionar-------"  />
                <f:selectItems value="#{TipoUsuarioController.selectListaTipoUsuarios}" />
            </h:selectOneMenu>            

            <h:outputLabel value="Modulo:"/>
            <h:selectOneMenu value="#{MenuWebController.modCodigo}" onchange="submit();" >
                <f:selectItem itemLabel="--------Seleccionar-------"  />
                <f:selectItems value="#{ModuloController.comboModulo}" />
            </h:selectOneMenu>

            <h:outputLabel value="Menu: " />
            <h:inputText value="#{MenuWebController.menuWeb.uemnombreEnlace}"size="50" maxlength="50"/>

            <h:outputLabel value="Ruta Pagina: "/>
            <h:panelGrid columns="2" styleClass="tablanormal">
                <h:inputText value="#{MenuWebController.menuWeb.uemrutaPagina}" size="80" maxlength="80"/>
                <h:outputLabel value="(Ejm. carpeta/archivo.jsp)" styleClass="desactivar" />
            </h:panelGrid>

            <h:outputLabel value="Orden:" />
            <h:inputText value="#{MenuWebController.menuWeb.uemOrden}" size="5" maxlength="5" />

        </h:panelGrid>

        <h:commandButton action="#{MenuWebController.guardarMenu}" value="Grabar" styleClass="desactivar" />
        <h:commandButton action="#{MenuWebController.retornar}" value="Cancelar" styleClass="desactivar" />

    </h:form>
</f:view>
